package com.itheima.proxy;

public class UserServiceImpl implements UserService{

    @Override
    public void delete() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public String select() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "1000个user";
    }

    @Override
    public String login(String username, String passWord) {
        String rs="失败";
        if("admin".equals(username) && "123".equals(passWord)){
            rs="成功";
        }
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return rs;
    }

}
